﻿using CommunityToolkit.Mvvm.ComponentModel;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WpfDemo.Common
{
    public partial class Modules : ObservableObject
    {

        /// <summary>
        /// 模块图标代码
        /// </summary>
        [ObservableProperty]
        private string? code;

        [ObservableProperty]
        private string? icon;
        /// <summary>
        /// 模块名称
        /// </summary>
        [ObservableProperty]
        public string name;


        /// <summary>
        /// 模块命名空间
        /// </summary>
        [ObservableProperty]
        public string? typeName;


        /// <summary>
        /// 权限值
        /// </summary>
        [ObservableProperty]
        public int auth;
       
    }
    /// <summary>
    /// 模块UI组件
    /// </summary>
    public partial class ModuleUIComponent : Modules
    {
        /// <summary>
        /// 页面内容
        /// </summary>
        [ObservableProperty]
        private object body;

    }
}
